//
//  HMPictuerInfo.m
//  weibo
//
//  Created by apple on 2016/11/17.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "HMPictuerInfo.h"

@implementation HMPictuerInfo
-(void)setThumbnail_pic:(NSString *)thumbnail_pic{
    _thumbnail_pic = thumbnail_pic;
//    _wap360 = [thumbnail_pic stringByReplacingOccurrencesOfString:@"thumbnail" withString:@"wap360"];
    _wap360 = [thumbnail_pic stringByReplacingOccurrencesOfString:@"thumbnail" withString:@"thumbnail"];

    _bmiddle = [thumbnail_pic stringByReplacingOccurrencesOfString:@"thumbnail" withString:@"bmiddle"];
    
    _url_pic = [NSURL URLWithString:_wap360];
}
//didSet{

//    wap360 = thumbnail_pic?.replacingOccurrences(of: "thumbnail", with: "wap360")
//    imgbmiddle = thumbnail_pic?.replacingOccurrences(of: "thumbnail", with: "bmiddle")
//    imgUrl = URL(string: wap360 ?? "")
//    
//}

@end
